package database

import (
	_ "github.com/go-sql-driver/mysql"
	"github.com/jinzhu/gorm"
	log "hais.pw/shorturl/utils"
)

var Exectue *gorm.DB

func init() {
	var err error
	Exectue, err = gorm.Open("mysql", "hais1992:weihaisheng@tcp(myk.pw:3306)/hais1992_db?charset=utf8&parseTime=True&loc=Local")
	log.PrintError(err)
}
